import { createApp } from 'vue'
import App from './App.vue'
//Element-Plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//svg
import 'virtual:svg-icons-register'

//引入全局样式
import './styles/index.scss'

//路由配置
import router from './router'

// 安装pinia
import pinia from './store'

const app = createApp(App)
//注册自定义插件对象：注册整个项目的全局组件
import globalComponent from '@/components'
//安装自定义插件
app.use(globalComponent)
//使用路由
app.use(router)
import './permisstion'
app.use(ElementPlus, {
  locale: zhCn
})
app.use(pinia)
app.mount('#app')
